package mybatis.domain;

import java.sql.Date;

public class User{
	private String id;
	private String password;
	private String name;
	private Integer age;
	private Date regDate;
	
	public User(){}
	
	public User(String id,String password,String name,Integer age,Date regDate){
		this.id = id;
		this.password = password;
		this.name = name;
		this.age = age;
		this.regDate = regDate;
	}
	
	public String toString(){		
		return String.format("%s, %s, %s, %d, %s",id,password,name,age,regDate);
	}
	
	
	//getter,setter
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public Date getRegDate() {
		return regDate;
	}
	public void setRegdate(Date regDate) {
		this.regDate = regDate;
	}
}